import { connect } from 'react-redux';
import { toggleDrawer } from '../actions';
import AppBarYz from '../components/AppBarYz';

const mapStateToProps = (state) => ({
  open: state.appBarR
});

const mapDispatchToProps = ({
  toggleDrawer
});

const AppBarYzc = connect(
  mapStateToProps,
  mapDispatchToProps
)(AppBarYz);

export default AppBarYzc;
